package com.learn.hibernatevalidator.chapter09.scriptevaluatorfactory;

import org.hibernate.validator.spi.scripting.ScriptEvaluator;
import org.hibernate.validator.spi.scripting.ScriptEvaluatorFactory;

/**
 * @author: liyf
 * @create: 2025-01-21 20:40
 **/
public class CustomScriptEvaluatorFactory implements ScriptEvaluatorFactory {
    @Override
    public ScriptEvaluator getScriptEvaluatorByLanguageName(String s) {
        return (script, bindings) -> true;
    }

    @Override
    public void clear() {

    }
}
